
import api from '../fetch/api.js'

const actions = {
    /**
     * API/获取情况反应（教职工）
     * @param {*} param0
     * @param {*} params {userId}/{page}
     */
    async getEventflowList({commit, rootState}, params) {
        console.log(params)
        return await api.mineBaseMsgApi(rootState.Host + '/itfer-qkfy/rest/emp/getEventflowList/' + params.userId + '/' + params.type + '/' + params.page)
    },
    /**
     * API/查看详情建议（教职工）
     * @param {*} param0
     * @param {*} params {userID}/{event_id}
     */
    async getHandoutL({commit, rootState}, params) {
        console.log(params)
        return await api.mineBaseMsgApi(rootState.Host + '/itfer-qkfy/rest/student/getEvent/' + params.userId + '/' + params.senvt)
    },
    /**
     * API/回复提交建议（教职工）
     * @param {*} param0
     * @param {*} params {userID}/{event_id}
     */
    async updateEventflow({commit, rootState}, params) {
        console.log(params)
        return await api.minePostMsgApi(rootState.Host + '/itfer-qkfy/rest/emp/updateEventflow', params)
    }
}

export default actions
